<template>
	<view class="container">
		<!-- <uni-card :is-shadow="false" is-full>
			<text class="uni-h6">卡片组件通用来显示完整独立的一段信息，同时让用户理解他的作用。例如一篇文章的预览图、作者信息、时间等，卡片通常是更复杂和更详细信息的入口点。</text>
		</uni-card> -->
		
		<uni-section overflow title="大乐透16期分析" type="line">
			<uni-card title="大于等于四期热,小于四温,没开的是冷" extra="开始分析" @click="qureShiLiu">
				  <div >
				    <view slot="header" class="clearfix" align="left">
				      <span> {{ coldHotRes.benqiHotNumber }}</span>
				    </view>
				    <view slot="header" class="clearfix" align="left">
				      <span> {{ coldHotRes.benqiColdNumber }}</span>
				    </view>
				
				    <view slot="header" class="clearfix" align="left">
				     <span> {{ recommend }}</span>
				    </view>
				
				    <view slot="header" class="clearfix" align="left" v-if=" coldHotRes.numberList[0]">
				      <span> {{ coldHotRes.numberList[0].benqiHongQiuNumber+' + '+coldHotRes.numberList[0].benqiLanQiuNumber }}</span>
				    </view>
				    <view slot="header" class="clearfix" align="left" v-if=" coldHotRes.numberList[0]">
				      <span> {{ coldHotRes.numberList[1].benqiHongQiuNumber+' + '+coldHotRes.numberList[1].benqiLanQiuNumber }}</span>
				     </view> 
				
				     <view slot="header" class="clearfix" align="left" v-if=" coldHotRes.numberList[0]">
				        <span> {{ coldHotRes.numberList[2].benqiHongQiuNumber+' + '+coldHotRes.numberList[2].benqiLanQiuNumber }}</span>
				     </view> 
				
				     <view slot="header" class="clearfix" align="left" v-if=" coldHotRes.numberList[0]">
				      <span> {{ coldHotRes.numberList[3].benqiHongQiuNumber+' + '+coldHotRes.numberList[3].benqiLanQiuNumber }}</span>
				     </view> 
				
				     <view slot="header" class="clearfix" align="left" v-if=" coldHotRes.numberList[0]">
				     <span> {{ coldHotRes.numberList[4].benqiHongQiuNumber+' + '+coldHotRes.numberList[4].benqiLanQiuNumber }}</span>
				     </view> 
				
				  </div>
			</uni-card>
		</uni-section>
		
		
		
		<uni-section overflow title="大乐透100期分析" type="line">
					<uni-card title="热号降序前7个最热号加最冷一个号" extra="开始分析" @click="qureYiBai">
						  <div >
						    <view slot="header" class="clearfix" align="left">
						      <span> {{ coldHotResYiBai.benqiHotNumberYiBai }}</span>
						    </view>
						    <view slot="header" class="clearfix" align="left">
						      <span> {{ coldHotResYiBai.benqiColdNumberYiBai }}</span>
						    </view>
						
						    <view slot="header" class="clearfix" align="left">
						     <span> {{ recommend }}</span>
						    </view>
						
						    <view slot="header" class="clearfix" align="left" v-if=" coldHotResYiBai.numberListYiBai[0]">
						      <span> {{ coldHotResYiBai.numberListYiBai[0].benqiHongQiuNumber+' + '+coldHotResYiBai.numberListYiBai[0].benqiLanQiuNumber }}</span>
						    </view>
						    <view slot="header" class="clearfix" align="left" v-if=" coldHotResYiBai.numberListYiBai[0]">
						      <span> {{ coldHotResYiBai.numberListYiBai[1].benqiHongQiuNumber+' + '+coldHotResYiBai.numberListYiBai[1].benqiLanQiuNumber }}</span>
						     </view> 
						
						     <view slot="header" class="clearfix" align="left" v-if=" coldHotResYiBai.numberListYiBai[0]">
						        <span> {{ coldHotResYiBai.numberListYiBai[2].benqiHongQiuNumber+' + '+coldHotResYiBai.numberListYiBai[2].benqiLanQiuNumber }}</span>
						     </view> 
						
						     <view slot="header" class="clearfix" align="left" v-if=" coldHotResYiBai.numberListYiBai[0]">
						      <span> {{ coldHotResYiBai.numberListYiBai[3].benqiHongQiuNumber+' + '+coldHotResYiBai.numberListYiBai[3].benqiLanQiuNumber }}</span>
						     </view> 
						
						     <view slot="header" class="clearfix" align="left" v-if=" coldHotResYiBai.numberListYiBai[0]">
						     <span> {{ coldHotResYiBai.numberListYiBai[4].benqiHongQiuNumber+' + '+coldHotResYiBai.numberListYiBai[4].benqiLanQiuNumber }}</span>
						     </view> 
						
						  </div>
					</uni-card>
				</uni-section>
		
		
		
		



	</view>
</template>

<script>
	export default {
		components: {},
		data() {
			 return {
			        recommend:'',
			        coldHotRes:{
			          hotNumber:[],
			          coldNumber:[],
			          numberList:[],
			          benqiHotNumber:'',
			          benqiColdNumber:'',
			          Numbers:''
			
			        },
					recommendYiBai:'',
					coldHotResYiBai:{
					  hotNumberYiBai:[],
					  coldNumberYiBai:[],
					  numberListYiBai:[],
					  benqiHotNumberYiBai:'',
					  benqiColdNumberYiBai:'',
					  NumbersYiBai:''
								
					}
			
			      }
		},
		methods: {
			async qureShiLiu () {
				uni.showLoading({  
				    title: '分析中'  
				});
				let { data:res } = await uni.$http.get('/daletou/chart/selectLeTou/coldHot')
				/* if(res.data =null){
					return uni.showToast({
						title:"数据请求失败",
						duration:1500,
						icon:"none"
					})
				} */
				 uni.hideLoading();    //动画关闭
				this.coldHotRes = res;
				this.recommendYiBai="推荐五注：";
			}, 
			async qureYiBai(){
				uni.showLoading({
				    title: '分析中'
				});
					let { data:res } = await uni.$http.get('/daletou/chart/selectLeTou/hundred')
					/* if(res.data =null){
						return uni.showToast({
							title:"数据请求失败",
							duration:1500,
							icon:"none"
						})
					} */
					 uni.hideLoading();    //动画关闭
					this.coldHotResYiBai = res;
					this.recommendYiBai="推荐五注：";
				}	  
				 
				
				  
		}
	}
</script>

<style lang="scss">
	
</style>
